﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using CodeFarmer.Service;
using CodeFarmer.Model.Entities;

namespace CodeFarmer.Controller.Controller
{
    public class ArticleController : BaseController
    {
        private readonly IArticleService articleService;

        public ArticleController(IArticleService articleService)
        {
            this.articleService = articleService;
        }

        public ActionResult GetArticle(int id)
        {
            Article article = articleService.GetArticle(id);
            return View(article);
        }
    }
}
